﻿using Abp.Application.Services.Dto;
using Abp.AutoMapper;
using System;
using System.ComponentModel.DataAnnotations;

namespace CPPProject.CPP.Dto
{
    [AutoMapFrom(typeof(CPPCarrier))]
    public class CPPCarrierDto : EntityDto<int>
    {
        public DateTime CreationTime { get; set; }
        /// <summary>
        /// 承运商名称
        /// </summary>
        [Required]
        [MaxLength(50)]
        public string Name { get; set; }
        /// <summary>
        /// 所属公司
        /// </summary>
        [Required]
        public long CompanyId { get; set; }
        public virtual CPPCompany TCompany { get; set; }
        /// <summary>
        /// 承运商编码
        /// </summary>
        [Required]
        [MaxLength(50)]
        public string CarrierNum { get; set; }
        /// <summary>
        /// 承运商ID
        /// </summary>
        [MaxLength(100)]
        public string CarrierID { get; set; }
        /// <summary>
        /// 承运商地址
        /// </summary>
        [Required]
        [MaxLength(500)]
        public string Address { get; set; }
        /// <summary>
        /// 承运商地址2
        /// </summary>
        [MaxLength(500)]
        public string Address2 { get; set; }
        /// <summary>
        /// 承运商地址3
        /// </summary>
        [MaxLength(500)]
        public string Address3 { get; set; }
        /// <summary>
        /// 联系人1
        /// </summary>
        [Required]
        [MaxLength(50)]
        public string Contactor { get; set; }
        /// <summary>
        /// 联系人2
        /// </summary>
        [MaxLength(50)]
        public string Contactor2 { get; set; }
        /// <summary>
        /// 联系人3
        /// </summary>
        [MaxLength(50)]
        public string Contactor3 { get; set; }
        /// <summary>
        /// 联系电话
        /// </summary>
        [Required]
        [MaxLength(50)]
        public string Telphone { get; set; }
        /// <summary>
        /// 联系电话2
        /// </summary>
        [MaxLength(50)]
        public string Telphone2 { get; set; }
        /// <summary>
        /// 联系电话3
        /// </summary>
        [MaxLength(50)]
        public string Telphone3 { get; set; }
        /// <summary>
        /// 社会信用代码
        /// </summary>
        [MaxLength(300)]
        public string CreditCode { get; set; }
        /// <summary>
        /// 注册资本
        /// </summary>
        public decimal RegistCapital { get; set; }
        /// <summary>
        /// 法人代表
        /// </summary>
        [MaxLength(50)]
        public string LegalPerson { get; set; }
        /// <summary>
        /// 税号
        /// </summary>
        [MaxLength(50)]
        public string TaxNumber { get; set; }
        /// <summary>
        /// 开户行
        /// </summary>
        [MaxLength(50)]
        public string OpeningBank { get; set; }
        /// <summary>
        /// 开户账号
        /// </summary>
        [MaxLength(50)]
        public string OpeningAccount { get; set; }
        /// <summary>
        /// 是否启用（1是0否）
        /// </summary>
        public bool IsEnabled { get; set; }
        /// <summary>
        /// 承运合同
        /// </summary>
        [MaxLength(500)]
        public string CarriageContract { get; set; }
        /// <summary>
        /// 图片地址
        /// </summary>
        [MaxLength(500)]
        public string ImageUrl { get; set; }
    }
}
